#include "Arduino.h"

int BumperR_pin;
int BumperL_pin;
int BumperC_pin;
byte BumperValue;
boolean blocked = false;
void OpenBumper(int, int, int);
void bumperRead();

/***********************************************************/
void OpenBumper(int LIO, int CIO, int RIO){
	BumperL_pin = LIO;
	BumperC_pin = CIO;
	BumperR_pin = RIO;

	pinMode(BumperL_pin, INPUT);
	pinMode(BumperC_pin, INPUT);
	pinMode(BumperR_pin, INPUT);
}

void bumperRead(){
	BumperValue = 0x07;
	BumperValue = digitalRead(BumperL_pin)<<2;
	BumperValue |= digitalRead(BumperC_pin)<<1;
	BumperValue |= digitalRead(BumperR_pin);
}

